package com.lczc.soa.service;

import com.lczc.soa.domain.Announce;
import com.lczc.soa.domain.SearchAnnounceResponse;

import java.util.List;

public interface AnnounceService {
    int saveAnnounce(Announce announce);

    int deleteAnnounce(String id);

    SearchAnnounceResponse findAllAnnounce(Integer pageNum, Integer pageSize);

    SearchAnnounceResponse findAnnounceLikeAnnounceName(String keywords, Integer pageNum, Integer pageSize);

    List<Announce> listAnnounce();

    Announce findAnnounceByPrimaryKey(String id);
}

